package edu.ahut.designpattern.adapter.decorator;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Scanner;

public class Demo {
    public static void main(String[] args) throws IOException {
        File file=new File("a.txt");
        file.createNewFile();

        FileInputStream fis=new FileInputStream(file);
        fis.read();

        BufferedInputStream bis=new BufferedInputStream(fis);
        fis.read();

        Scanner scanner=new Scanner(file);
        scanner.next();


    }
}
